package com.itheima.thread.api.demo07;

import java.util.Map;
import java.util.concurrent.TimeUnit;

public class MyThreadDemo07 {

    public static void main(String[] args) {

        MyThread t1 = new MyThread();

        t1.start();

        try {
            TimeUnit.SECONDS.sleep(5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        t1.interrupt();
    }
}
